package com.duanxian.dao;

import com.duanxian.core.db.DbTemplateImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by llx on 2017/8/13.
 */
@Repository("baseDao")
public class BaseDaoImpl implements BaseDao {

    @Autowired
    private DbTemplateImpl sqlQuery;

    public List<Map<String, Object>> query(String sql, List<Object> params) {
        return sqlQuery.query("select * from sys_user",params);
    }
}
